package io.litchi.auth.Infrastructure.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * description: 认证配置类
 *
 * @author helang
 * @since 2025-09-10
 */

@Data
@ConfigurationProperties(prefix = "litchi.auth")
public class AuthConfig {

    private String tokenPrefix = "Bearer-";

    private String tokenKey = "LITCHI_AUTHENTICATION";

    private String refreshTokenKey = "LITCHI_AUTHENTICATION_REFRESH";

    private Long expireTime = 1000 * 60 * 30L; //默认半个小时

    private Long refreshTime = 1000 * 60 * 60L; //默认一个小时

    private String loginUri = "/login";

    private String logoutUri = "/logout";

}